home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7649 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c,gnu.gcc.help,comp.unix.programmer
  4. Subject: Re: Help for using bcopy function
  5. Date: Tue, 27 Feb 96 23:00:59 GMT
  6. Organization: none
  7. Distribution: world
  8. Message-ID: <825462059snz@genesis.demon.co.uk>
  9. References: <4gl53u$4bv@kocrsv08.delcoelect.com> <ELIAS.96Feb27144032@cepheus.omicron.se>
  10. Reply-To: fred@genesis.demon.co.uk
  11. X-NNTP-Posting-Host: genesis.demon.co.uk
  12. X-Newsreader: Demon Internet Simple News v1.27
  13. X-Mail2News-Path: genesis.demon.co.uk
  14.  
  15. In article <ELIAS.96Feb27144032@cepheus.omicron.se>
  16.            elias@cepheus.omicron.se "Elias Martenson" writes:
  17.  
  18. >In article <4gl53u$4bv@kocrsv08.delcoelect.com> c2xjs2@mail.delcoelect.com
  19. > (Jianli Sun) writes:
  20. >
  21. >> I use bcopy function in a client-server program, I get a error 
  22. >> say bcopy is not declared, when I try to compile it on UNIX using
  23. >> gcc. Can someone out there, tell me which libary file I should 
  24. >> inclued to compile it. please e-mail me. thanks!
  25. >
  26. >bcopy() is not standard AFAIK. Use memcpy instead.
  27.  
  28. AFAIK bcopy() is defined for overlapping copies in which case you must
  29. use memmove() unless you can be sure that source and destination don't
  30. overlap in the particular case.
  31.  
  32. -- 
  33. -----------------------------------------
  34. Lawrence Kirby | fred@genesis.demon.co.uk
  35. Wilts, England | 70734.126@compuserve.com
  36. -----------------------------------------
  37.